<%--
  Created by IntelliJ IDEA.
  User: 肖林
  Date: 2018/5/17
  Time: 19:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>loginHandler</title>
</head>
<body>
        <%
            String username=request.getParameter("username");
            String password=request.getParameter("password");
        if ("admin".equals(username)&&
                "12345".equals(password)) {
            out.write("登陆成功！");
            session.setAttribute("isLogin", "true");
            response.sendRedirect("userList.jsp");
        }else {
            out.write("登陆失败！");
        }
        %>
</body>
</html>
